package com.gexiaobao.pigeon.ui.auction

import android.os.Bundle
import com.gexiaobao.pigeon.app.base.BaseActivity
import com.gexiaobao.pigeon.app.util.StatusBarUtil
import com.gexiaobao.pigeon.databinding.ActivityAuctionOrderDetailBinding
import com.gexiaobao.pigeon.viewmodel.AuctionViewModel
import me.hgj.jetpackmvvm.ext.util.setOnclickNoRepeat

/**
 * @Author      : hxw
 * @Date        : 2024/12/4 14:41
 * @Describe    : 订单详情（拍卖）
 */
class ActivityAuctionOrderDetail : BaseActivity<AuctionViewModel, ActivityAuctionOrderDetailBinding>() {

    private var mAuctionId = 0

    override fun initView(savedInstanceState: Bundle?) {
        StatusBarUtil.setTranslucentForImageView(this, 0, null)
        mDatabind.includeBar.tvTitle.text = "订单详情"

        mAuctionId = intent.getIntExtra("auctionId", 0)
    }

    override fun onBindViewClick() {
        super.onBindViewClick()
        setOnclickNoRepeat(mDatabind.includeBar.ivBack) {
            when (it) {
                mDatabind.includeBar.ivBack -> finish()
            }
        }
    }
}